home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / python-support / python-rdflib / rdflib / TripleStore.py < prev    next >
Encoding:
Python Source  |  2007-04-04  |  485 b   |  22 lines

  1. """Deprecated; use Graph."""
  2.  
  3. from rdflib import Graph
  4.  
  5. from rdflib.store.Memory import Memory
  6.  
  7. class TripleStore(Graph):
  8.     """
  9.     Depcrecated. Use Graph instead.
  10.     """
  11.  
  12.     def __init__(self, location=None, backend=None):
  13.         if backend==None:
  14.             backend = Memory()
  15.         super(TripleStore, self).__init__(backend=backend)
  16.         if location:
  17.             self.load(location)
  18.  
  19.     def prefix_mapping(self, prefix, namespace):
  20.         self.bind(prefix, namespace)
  21.  
  22.